package com.ostrich.a2104gao5.test13

/**
 * @Author : yaotianxue
 * @Time : On 2023/10/16 15:06
 * @Description : Dog
 */
//子类继承父类的时候必须调用主构造
class Dog: Animal("dog"),Eat {
    override fun show() {
        super.show()
        println("小狗子类的方法")
    }

    override fun test() {

    }

    override fun eat() {
        println("小狗吃骨头")
    }

    override fun drink() {
        println("小狗喝牛奶")
    }
}